$(document).ready(function()	{
	$.getJSON(root+'index.php/product/getPopularTags', {}, function(ret) {
		ret = ret.result;
		for(var i in ret)	{
			var obj = ret[i];
			$('#top-tags').append('<span class="tag"><a href="'+root+'index.php/index/tag/'+obj.tid+'">'+obj.content+'</a></span>');
		}
	});
	
	$.getJSON(root+'index.php/store/listStores', {}, function(ret) {
		ret = ret.result;
		for(var i in ret)	{
			var obj = ret[i];
			$('#store-list').append('<li><a href="'+root+'index.php/index/store/'+obj.id+'" class="store-logo"><img src="'+root+'static/stores/'+obj.image+'" /></a></li>');
		}
	});
});